<script setup>
import { ref } from "vue";
import { useRouter } from "vue-router";

const router = useRouter();
const msg = ref("404");

const goHome = () => {
  router.push({
    path: `/home`,
  });
};
</script>

<template>
  <div class="notFound">
    <div class="text">404</div>
    <van-button round type="primary" @click="goHome"> 返回首页 </van-button>
  </div>
</template>

<style lang="less" scoped>
.notFound {
  height: 100%;
  background: url("/public/img/mobile/bg-empty.png") no-repeat bottom center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  .text {
    font-size: 40px;
    font-weight: 600;
    color: #fff;
  }
}
</style>
